<?php

namespace app\Constant;

class ApiConstant
{
    const SUCCESS      = 0;
    const FAILURE      = -1;
    const NO_LOGIN     = 1000;
    const PARAM_ERROR  = 1001;
    const UNLOCK_ERROR = 1002;

    const TYPE_MINI_DOUYIN = 'dy_xcx';
    const TYPE_MINI_WECHAT = 'wx_xcx';
    const PLATFORM         = [
        'dy_xcx' => '抖音小程序',
        'wx_xcx' => '微信小程序',
    ];

    const PAY_TYPE_MEMBER = 1; //充值包月/包季/包年等会员
    const PAY_TYPE_GOLD   = 2; //充值xx币

    const DOUYIN_PAY_TYPE = [
        self::PAY_TYPE_MEMBER => '会员',
        self::PAY_TYPE_GOLD   => '虚拟币',
    ];
}
